import os
from config import data_directory

# commands to untar a file: tar –xvf

dir_name = os.getcwd()

server_name = "bltang@10.200.14.51"

server_data = "/DKUdata/2020/jinzhan/data/LRS2"

# download all the data
for i in [
    #"lrs2_v1.tar",
    # "mvlrs_v1",
     "pretrain.txt",
     "test.txt",
     "train.txt",
     "val.txt",
]:
    command = f"scp {server_name}:{server_data}/{i} {data_directory}"
    os.system(command)

# ssh into ths server and go to the current dir

cmd = "ssh  bltang@10.200.14.51"
os.system(cmd)
